<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>站点设置 - 智慧题库</title>
    <link href="../assets/css/tailwind.css" rel="stylesheet">
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
</head>
<body class="font-inter bg-gray-50 min-h-screen flex flex-col bg-education">
    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white/90 backdrop-blur-sm shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <div class="w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center text-primary">
                    <i class="fa fa-question-circle"></i>
                </div>
                <h1 class="text-xl font-bold text-dark ml-0 md:ml-[-2rem]">智慧题库管理系统</h1>
            </div>
            
            <!-- 顶部导航 -->
            <div class="hidden md:flex items-center space-x-2">
                <a href="AdminDashboard.html" class="nav-item">
                    <i class="fa fa-home mr-2"></i> 控制面板
                </a>
                <a href="QuestionManagement.html" class="nav-item">
                    <i class="fa fa-book mr-2"></i> 题库管理
                </a>
                <a href="ExamManagement.html" class="nav-item">
                    <i class="fa fa-graduation-cap mr-2"></i> 考试管理
                </a>
                <a href="TextbookVersionList.html" class="nav-item">
                    <i class="fa fa-archive mr-2"></i> 教材管理
                </a>
                <a href="StatisticsAnalysis.html" class="nav-item">
                    <i class="fa fa-bar-chart mr-2"></i> 数据分析
                </a>
                <a href="SystemSettings.html" class="nav-item active">
                    <i class="fa fa-cog mr-2"></i> 系统设置
                </a>
            </div>
            
            <div class="flex items-center space-x-4">
                <button class="p-2 text-muted hover:text-primary transition-colors relative">
                    <i class="fa fa-bell"></i>
                    <span class="absolute top-1 right-1 w-2 h-2 bg-accent rounded-full"></span>
                </button>
                <div class="flex items-center space-x-2">
                    <img src="https://picsum.photos/id/64/40/40" alt="用户头像" class="w-8 h-8 rounded-full object-cover border-2 border-primary/20">
                    <span class="hidden md:inline text-sm font-medium text-dark">张老师</span>
                    <i class="fa fa-angle-down text-muted"></i>
                </div>
                <button class="md:hidden p-2 text-muted hover:text-primary transition-colors" id="mobile-menu-button">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="flex-grow flex">
        <!-- 左侧导航栏 -->
        <aside id="sidebar" class="w-64 bg-sidebar-bg shadow-sidebar transition-all duration-300 h-[calc(100vh-64px)] sticky top-[64px] overflow-y-auto">
            <!-- 系统设置菜单 -->
            <div class="p-4 border-b border-gray-200">
                <h3 class="text-lg font-bold text-center text-muted uppercase tracking-wider">系统设置</h3>
            </div>
            <div class="p-2">
                <div class="sidebar-item active">
                    <i class="fa fa-globe"></i>
                    <span>站点设置</span>
                </div>
                <a href="RegisterSettings.html" class="sidebar-item">
                    <i class="fa fa-user-plus"></i>
                    <span>注册设置</span>
                </a>
                <a href="BasicSettings.html" class="sidebar-item">
                    <i class="fa fa-cog"></i>
                    <span>基础设置</span>
                </a>
                <a href="SecuritySettings.html" class="sidebar-item">
                    <i class="fa fa-shield"></i>
                    <span>安全设置</span>
                </a>
                <a href="RolePermissions.html" class="sidebar-item">
                    <i class="fa fa-users"></i>
                    <span>角色权限</span>
                </a>
                <a href="DataBackup.html" class="sidebar-item">
                    <i class="fa fa-database"></i>
                    <span>数据备份</span>
                </a>
            </div>
        </aside>

        <!-- 内容区域 -->
        <div class="flex-grow p-6">
            <!-- 页面标题 -->
            <div class="mb-8">
                <div class="flex items-center justify-between">
                    <div>
                        <h2 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-dark">站点设置</h2>
                        <p class="text-muted mt-2">配置网站基本信息、外观和功能选项</p>
                    </div>
                    <div class="flex space-x-3">
                        <button class="px-4 py-2 bg-white border border-gray-300 text-dark rounded-lg shadow-sm hover:bg-gray-50 transition-colors">
                            <i class="fa fa-eye mr-2"></i>预览
                        </button>
                        <button class="px-4 py-2 bg-primary text-white rounded-lg shadow-sm hover:bg-primary/90 transition-colors">
                            <i class="fa fa-save mr-2"></i>保存设置
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 设置表单 -->
            <div class="space-y-6">
                <!-- 基本信息 -->
                <div class="bg-white rounded-2xl p-6 shadow-card">
                    <h3 class="text-lg font-bold text-dark mb-6 flex items-center">
                        <i class="fa fa-info-circle text-primary mr-2"></i>基本信息
                    </h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">网站名称 *</label>
                            <input type="text" value="智慧题库管理系统" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">网站标题</label>
                            <input type="text" value="智慧题库 - 专业的在线题库管理平台" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">网站描述</label>
                            <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50" rows="3">专业的在线题库管理系统，为教育机构提供完整的题库管理解决方案</textarea>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">关键词</label>
                            <input type="text" value="题库管理,在线考试,教育系统,智慧教育" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">联系邮箱</label>
                            <input type="email" value="admin@ruitujiaoyu.com" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">联系电话</label>
                            <input type="tel" value="400-123-4567" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                        </div>
                    </div>
                </div>
                
                <!-- 外观设置 -->
                <div class="bg-white rounded-2xl p-6 shadow-card">
                    <h3 class="text-lg font-bold text-dark mb-6 flex items-center">
                        <i class="fa fa-paint-brush text-primary mr-2"></i>外观设置
                    </h3>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">主题色彩</label>
                            <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                                <option value="blue">蓝色主题</option>
                                <option value="green">绿色主题</option>
                                <option value="purple">紫色主题</option>
                                <option value="orange">橙色主题</option>
                            </select>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">布局模式</label>
                            <div class="space-y-2">
                                <label class="flex items-center">
                                    <input type="radio" name="layout" value="sidebar" checked class="mr-2">
                                    <span class="text-sm">侧边栏布局</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="radio" name="layout" value="topbar" class="mr-2">
                                    <span class="text-sm">顶部导航布局</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="radio" name="layout" value="compact" class="mr-2">
                                    <span class="text-sm">紧凑布局</span>
                                </label>
                            </div>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">网站Logo</label>
                            <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                                <img src="https://picsum.photos/200/80" alt="Logo" class="mx-auto mb-2 max-h-16">
                                <p class="text-sm text-muted mb-2">当前Logo</p>
                                <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">
                                    <i class="fa fa-upload mr-2"></i>更换Logo
                                </button>
                            </div>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">网站图标</label>
                            <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                                <img src="https://picsum.photos/32/32" alt="Favicon" class="mx-auto mb-2">
                                <p class="text-sm text-muted mb-2">当前图标</p>
                                <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">
                                    <i class="fa fa-upload mr-2"></i>更换图标
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 功能设置 -->
                <div class="bg-white rounded-2xl p-6 shadow-card">
                    <h3 class="text-lg font-bold text-dark mb-6 flex items-center">
                        <i class="fa fa-cogs text-primary mr-2"></i>功能设置
                    </h3>
                    
                    <div class="space-y-6">
                        <div>
                            <label class="block text-sm font-medium text-muted mb-3">启用功能</label>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                <label class="flex items-center">
                                    <input type="checkbox" checked class="mr-2">
                                    <span class="text-sm">用户注册</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" checked class="mr-2">
                                    <span class="text-sm">邮件通知</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" checked class="mr-2">
                                    <span class="text-sm">短信验证</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="mr-2">
                                    <span class="text-sm">第三方登录</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" checked class="mr-2">
                                    <span class="text-sm">数据统计</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" checked class="mr-2">
                                    <span class="text-sm">自动备份</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="mr-2">
                                    <span class="text-sm">API接口</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" checked class="mr-2">
                                    <span class="text-sm">在线客服</span>
                                </label>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div>
                                <label class="block text-sm font-medium text-muted mb-1">默认语言</label>
                                <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                                    <option value="zh-CN">简体中文</option>
                                    <option value="en-US">English</option>
                                    <option value="ja-JP">日本語</option>
                                </select>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-muted mb-1">时区设置</label>
                                <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                                    <option value="Asia/Shanghai">中国标准时间 (UTC+8)</option>
                                    <option value="UTC">协调世界时 (UTC)</option>
                                    <option value="America/New_York">美国东部时间 (UTC-5)</option>
                                </select>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-muted mb-1">每页显示数量</label>
                                <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                                    <option value="10">10条</option>
                                    <option value="20" selected>20条</option>
                                    <option value="50">50条</option>
                                    <option value="100">100条</option>
                                </select>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-muted mb-1">缓存时间（分钟）</label>
                                <input type="number" value="30" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50">
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 高级设置 -->
                <div class="bg-white rounded-2xl p-6 shadow-card">
                    <h3 class="text-lg font-bold text-dark mb-6 flex items-center">
                        <i class="fa fa-wrench text-primary mr-2"></i>高级设置
                    </h3>
                    
                    <div class="space-y-6">
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">自定义CSS</label>
                            <textarea placeholder="输入自定义CSS代码..." class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50" rows="4"></textarea>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">自定义JavaScript</label>
                            <textarea placeholder="输入自定义JavaScript代码..." class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50" rows="4"></textarea>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-muted mb-1">网站地图文件</label>
                            <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center">
                                <i class="fa fa-file-text-o text-3xl text-muted mb-2"></i>
                                <p class="text-sm text-muted mb-2">上传sitemap.xml文件</p>
                                <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">
                                    <i class="fa fa-upload mr-2"></i>选择文件
                                </button>
                            </div>
                        </div>
                        
                        <div class="flex items-center justify-between">
                            <div>
                                <label class="block text-sm font-medium text-muted mb-1">调试模式</label>
                                <p class="text-xs text-muted">开启后将显示详细的错误信息</p>
                            </div>
                            <label class="relative inline-flex items-center cursor-pointer">
                                <input type="checkbox" class="sr-only peer">
                                <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary/20 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"></div>
                            </label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- JavaScript -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 移动端菜单切换
            const mobileMenuButton = document.getElementById('mobile-menu-button');
            const sidebar = document.getElementById('sidebar');
            
            if (mobileMenuButton && sidebar) {
                mobileMenuButton.addEventListener('click', function() {
                    sidebar.classList.toggle('translate-x-0');
                    sidebar.classList.toggle('-translate-x-full');
                });
            }
            
            // 初始化移动端侧边栏状态
            function checkScreenSize() {
                if (window.innerWidth < 768) {
                    sidebar.classList.add('-translate-x-full');
                    sidebar.classList.remove('translate-x-0');
                } else {
                    sidebar.classList.remove('-translate-x-full');
                    sidebar.classList.add('translate-x-0');
                }
            }
            
            // 初始检查
            checkScreenSize();
            
            // 窗口大小变化时检查
            window.addEventListener('resize', checkScreenSize);
        });
    </script>
</body>
</html> 